package com.jcf.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jcf.springboot.entity.sys.Manager;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jjj
 * @since 2021-03-18
 */
public interface ManagerMapper extends BaseMapper<Manager> {

  IPage<Manager> selectAllWithPage(Page page, String query);

  boolean saveUser(String userId,String roleId);


  Integer deleteUserWithRole(String userId);

  List<Manager> selectUserList(String query, Integer pagenum, Integer pagesize);
}
